#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {
	int a = 0, b = 0, c = 0, min = 0, max = 0;
	scanf("%d %d %d", &a, &b, &c);
	if (a > b) {
		max = a;
		min = b;
	}
	else {
		max = b;
		min = a;
	}
	if (c > max)
		c = max;
	else if (c < min)
		c = min;
	printf("%d %d %d", max, a + b + c - max - min, min);
	return 0;
}